package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_cb_price_chg")
public class FCbPriceChg {
    @Id
    private Long tid;

    /**
     * 转债代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 转债简称
     */
    @Column(name = "bond_short_name")
    private String bondShortName;

    /**
     * 公告日期
     */
    @Column(name = "publish_date")
    private String publishDate;

    /**
     * 变动日期
     */
    @Column(name = "change_date")
    private String changeDate;

    /**
     * 初始转股价格
     */
    @Column(name = "convert_price_initial")
    private Float convertPriceInitial;

    /**
     * 修正前转股价格
     */
    @Column(name = "convertprice_bef")
    private Float convertpriceBef;

    /**
     * 修正后转股价格
     */
    @Column(name = "convertprice_aft")
    private Float convertpriceAft;

    public FCbPriceChg(Long tid, String tsCode, String bondShortName, String publishDate, String changeDate, Float convertPriceInitial, Float convertpriceBef, Float convertpriceAft) {
        this.tid = tid;
        this.tsCode = tsCode;
        this.bondShortName = bondShortName;
        this.publishDate = publishDate;
        this.changeDate = changeDate;
        this.convertPriceInitial = convertPriceInitial;
        this.convertpriceBef = convertpriceBef;
        this.convertpriceAft = convertpriceAft;
    }

    public FCbPriceChg() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取转债代码
     *
     * @return ts_code - 转债代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置转债代码
     *
     * @param tsCode 转债代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取转债简称
     *
     * @return bond_short_name - 转债简称
     */
    public String getBondShortName() {
        return bondShortName;
    }

    /**
     * 设置转债简称
     *
     * @param bondShortName 转债简称
     */
    public void setBondShortName(String bondShortName) {
        this.bondShortName = bondShortName;
    }

    /**
     * 获取公告日期
     *
     * @return publish_date - 公告日期
     */
    public String getPublishDate() {
        return publishDate;
    }

    /**
     * 设置公告日期
     *
     * @param publishDate 公告日期
     */
    public void setPublishDate(String publishDate) {
        this.publishDate = publishDate;
    }

    /**
     * 获取变动日期
     *
     * @return change_date - 变动日期
     */
    public String getChangeDate() {
        return changeDate;
    }

    /**
     * 设置变动日期
     *
     * @param changeDate 变动日期
     */
    public void setChangeDate(String changeDate) {
        this.changeDate = changeDate;
    }

    /**
     * 获取初始转股价格
     *
     * @return convert_price_initial - 初始转股价格
     */
    public Float getConvertPriceInitial() {
        return convertPriceInitial;
    }

    /**
     * 设置初始转股价格
     *
     * @param convertPriceInitial 初始转股价格
     */
    public void setConvertPriceInitial(Float convertPriceInitial) {
        this.convertPriceInitial = convertPriceInitial;
    }

    /**
     * 获取修正前转股价格
     *
     * @return convertprice_bef - 修正前转股价格
     */
    public Float getConvertpriceBef() {
        return convertpriceBef;
    }

    /**
     * 设置修正前转股价格
     *
     * @param convertpriceBef 修正前转股价格
     */
    public void setConvertpriceBef(Float convertpriceBef) {
        this.convertpriceBef = convertpriceBef;
    }

    /**
     * 获取修正后转股价格
     *
     * @return convertprice_aft - 修正后转股价格
     */
    public Float getConvertpriceAft() {
        return convertpriceAft;
    }

    /**
     * 设置修正后转股价格
     *
     * @param convertpriceAft 修正后转股价格
     */
    public void setConvertpriceAft(Float convertpriceAft) {
        this.convertpriceAft = convertpriceAft;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", bondShortName=").append(bondShortName);
        sb.append(", publishDate=").append(publishDate);
        sb.append(", changeDate=").append(changeDate);
        sb.append(", convertPriceInitial=").append(convertPriceInitial);
        sb.append(", convertpriceBef=").append(convertpriceBef);
        sb.append(", convertpriceAft=").append(convertpriceAft);
        sb.append("]");
        return sb.toString();
    }
}